---
layout: "default"
title: "isEmpty"
description: "Swift documentation for 'isEmpty': Returns true iff x is empty."
keywords: "isEmpty,func,swift,documentation"
root: "/v1.2"
---

<div class="declaration" id="func-isempty-c_-collectiontype_-c">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-isempty-c_-collectiontype_-c">func <wbr>isEmpty&lt;C : CollectionType&gt;(<wbr>_: C)</a>
        
<div class="comment collapse" id="comment-func-isempty-c_-collectiontype_-c"><div class="p">
    <p>Returns <code>true</code> iff <code>x</code> is empty.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func isEmpty&lt;C : CollectionType&gt;(x: C) -&gt; Bool</code>
    
    
</div></div>
</div>
